Function: treemacs-project->key

treemacs-project->key is a byte-compiled function defined in treemacs-workspaces.el.

Signature

(treemacs-project->key SELF)

Documentation

Get the hash table key of SELF.

SELF may be a project struct or a root key of a top level extension.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-workspaces.el
(define-inline treemacs-project->key (self)
  "Get the hash table key of SELF.
SELF may be a project struct or a root key of a top level extension."
  (declare (side-effect-free t))
  (inline-letevals (self)
    (inline-quote
     ;; Top-level extensions are added to the project positions their root-key,
     ;; not a real project.
     (if (treemacs-project-p ,self)
         (treemacs-project->path ,self)
       ,self))))